package com.easygo.service.impl;

import com.easygo.mapper.SpecificationOptionMapper;
import com.easygo.service.SpecificationOptionService;
import com.xuexi.easygo.pojo.SpecificationOption;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SpecificationOptionServiceImpl implements SpecificationOptionService {

    @Resource
    SpecificationOptionMapper optionMapper;
    @Override
    public Integer addSpecificationOption(SpecificationOption option) {
        return optionMapper.addSpecificationOption(option);
    }

    @Override
    public List<SpecificationOption> getSpecificationOptionsBySpecificationId(Integer specificationid) {
        return optionMapper.getSpecificationOptionsBySpecificationId(specificationid);
    }

    @Override
    public Integer deleteSpecificationOptions(Integer spec_id) {
        return optionMapper.deleteSpecificationOptions(spec_id);
    }
}
